{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/builder/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
    .layui-timeline-title{
        margin-bottom: 25px;
    }
</style>
<body>
<div class="layui-fluid layui-anim layui-anim-downbit">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form class="layui-form" id="form" action="{:url('order/deliver')}" lay-filter='form'>
                <input type="hidden" name="id" id="id" value="{$info?$info.id:''}"/>
                <div class="layui-timeline">
                <div class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis"></i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">收货信息</h3>
                        <div class="layui-form-item">
                            <label class="layui-form-label">收货人 </label>
                            <div class="layui-input-inline">
                                <input type="text" value="{$info->receiver}" name="receiver" lay-verify="required"
                                       lay-reqtext="请填写收货人" placeholder="请填写收货人" class="layui-input"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">收货电话 </label>
                            <div class="layui-input-inline">
                                <input type="text" value="{$info->receiver_tel}" name="receiver_tel"
                                       lay-verify="required"
                                       lay-reqtext="请填写收货电话" placeholder="请填写收货电话" class="layui-input"/>
                            </div>
                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">收货地址 </label>

                            <div class="layui-inline sunSelect" data-url="{:url('Order/getArea')}" data-value="code"
                                 data-name="title">
                                <div class="layui-input-inline">
                                    <select name="province" data-name="省" data-level="1" data-id="{$info.province}"
                                            lay-filter="sunSelect"></select>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="city" data-name="市" data-level="2" data-id="{$info.city}"
                                            lay-filter="sunSelect"></select>
                                </div>
                                <div class="layui-input-inline">
                                    <select name="district" data-name="区/县" data-level="3" data-id="{$info.district}"
                                            lay-filter="sunSelect"></select>
                                </div>
                            </div>

                        </div>

                        <div class="layui-form-item">
                            <label class="layui-form-label">详细地址 </label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.address_details}" name="address_details"
                                       lay-verify="required"
                                       lay-reqtext="请填写详细地址" placeholder="请填写详细地址" class="layui-input"/>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-timeline-item">
                    <i class="layui-icon layui-timeline-axis"></i>
                    <div class="layui-timeline-content layui-text">
                        <h3 class="layui-timeline-title">发货信息</h3>
                        <div class="layui-form-item">
                            <label for="express_id" class="layui-form-label">快递公司</label>
                            <div class="layui-input-inline">
                                <select name="express_id" id="express_id" lay-filter="express_id"
                                        style="max-height: 100px;">
                                    {volist name="express" id="vo"}
                                    <option value="{$vo.id}" {if $info.express_id== $vo.id}selected{
                                    /if} >{$vo.title}</option>
                                    {/volist}
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">快递单号 </label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.express_code}" name="express_code"
                                       lay-verify="required"
                                       lay-reqtext="请填写快递单号" placeholder="请填写快递单号" class="layui-input"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">备注 </label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.post_remark}" name="post_remark" placeholder="备注"
                                       class="layui-input"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            </form>
        </div>
    </div>
</div>
{if $info->getData('status') < 4}
<div class="layui-footer" style="left: 0;">
    <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">{if $info->getData('status') < 3}发货{else}修改{/if}
    </button>

</div>
{/if}
</body>
{include file="public/footer" /}
</html>